<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>李佳音的作业1</title>
</head>
<body>
<pre>
    #获取键盘输入
    s = input()
    #定义字典，初始化数字个数为0，字母个数为0
    d = {"DIGITS":0,"LETTERS":0}
    #遍历字符串
    for c in s:
        if c.isdigit():
            d["DIGITS"]+=1
        elif c.isalpha():
            d["LETTERS"]+=1
        else:
            pass
    print("LETTERS",d["LETTERS"])
    print("DIGITS",d["DIGITS"])
</pre>
</body>
</html>